Dmitry Antipov [Fri, 31 Oct 2014 11:09:00 +0000 (14:09 +0300)]
* font.c (copy_font_spec): Redesign to avoid Fcopy_alist
and unnecessary initialization. Adjust comments.
Glenn Morris [Thu, 30 Oct 2014 22:52:38 +0000 (18:52 -0400)]
* lisp/startup.el (command-line): Remove pointless attempt to avoid statting fs
; which expand-file-name doesn't even do.
Eli Zaretskii [Thu, 30 Oct 2014 16:51:53 +0000 (18:51 +0200)]
Minor fix in bidi.c:bidi_cache_reset_to.
src/bidi.c (bidi_cache_reset_to): Invalidate bidi_cache_last_idx by
setting it to -1.
(bidi_find_bracket_pairs): Pass to bidi_cache_reset_to a relative
index, not an absolute one, as that's what the function expects.
Alan Mackenzie [Thu, 30 Oct 2014 16:07:19 +0000 (16:07 +0000)]
Add "enum classs" support to C++ mode.
progmodes/cc-langs.el (c-after-brace-list-decl-kwds)
(c-after-brace-list-key): New language consts/variables.
progmodes/cc-engine.el (c-looking-at-decl-block): Exclude
spurious match of "enum struct" from decl-block recognition.
(c-backward-colon-prefixed-type): New function.
(c-backward-over-enum-header): Call above function to extend
recognition of enum structure.
Dmitry Antipov [Thu, 30 Oct 2014 11:12:21 +0000 (14:12 +0300)]
* fontset.c (toplevel): Adjust comment to match 2014-06-19 change.
Dmitry Antipov [Thu, 30 Oct 2014 09:37:08 +0000 (12:37 +0300)]
* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to realize
font on an initial frame when running as a daemon (Bug#18869).
Glenn Morris [Thu, 30 Oct 2014 05:39:21 +0000 (22:39 -0700)]
Update some version numbers for trunk version change
Glenn Morris [Thu, 30 Oct 2014 05:23:50 +0000 (22:23 -0700)]
* NEWS: Remove items backported to NEWS.24
Glenn Morris [Thu, 30 Oct 2014 05:15:28 +0000 (22:15 -0700)]
Merge from emacs-24; up to 117634
Stefan Monnier [Thu, 30 Oct 2014 03:50:15 +0000 (23:50 -0400)]
* lisp/progmodes/cc-defs.el (c--macroexpand-all): New function.
(c-lang-defconst):
* lisp/progmodes/cc-langs.el (c-make-init-lang-vars-fun): Use it.
Fixes: debbugs:18845
Glenn Morris [Thu, 30 Oct 2014 03:33:08 +0000 (20:33 -0700)]
ChangeLog date fix
Glenn Morris [Thu, 30 Oct 2014 03:26:24 +0000 (20:26 -0700)]
NEWS fixes
Glenn Morris [Thu, 30 Oct 2014 02:58:11 +0000 (19:58 -0700)]
* doc/misc/efaq.texi (Gnus does not work with NNTP): Remove; ancient
Glenn Morris [Wed, 29 Oct 2014 17:40:26 +0000 (13:40 -0400)]
* lisp/net/rcirc.el (rcirc-fill-column): Unbump :version.
A change in the possible :type with no change in the default does not
merit a :version bump.
Mark :risky.
Glenn Morris [Wed, 29 Oct 2014 17:36:33 +0000 (13:36 -0400)]
* version.el (emacs-bzr-version, emacs-bzr-get-version): Revert 2014-10-26
change.
Eli Zaretskii [Wed, 29 Oct 2014 15:17:18 +0000 (17:17 +0200)]
Fix bug #18874 with rgrep not obeying grep-scroll-output.
lisp/progmodes/compile.el (compilation-start): If
compilation-scroll-output is non-nil, don't force window-start of
the compilation buffer to be at beginning of buffer.
Paul Eggert [Wed, 29 Oct 2014 03:21:06 +0000 (20:21 -0700)]
Port current-time change to XEmacs 21.4.
See the buildbot log at:
http://www.randomsample.de:4456/builders/xemacs21.4-linux/builds/1285
* lisp/erc/erc.el (erc-emacs-time-to-erc-time)
(erc-emacs-time-to-erc-time):
* lisp/gnus/gnus-util.el (gnus-float-time):
* lisp/org/org-compat.el (org-float-time):
Use 2-arg defalias, since XEmacs 21.4 doesn't support 3-arg.
Paul Eggert [Wed, 29 Oct 2014 01:42:51 +0000 (18:42 -0700)]
Simplify use of current-time and friends.
* doc/misc/org.texi (Dynamic blocks):
* lisp/allout-widgets.el (allout-widgets-hook-error-handler):
* lisp/calendar/appt.el (appt-display-message):
* lisp/calendar/icalendar.el (icalendar--convert-float-to-ical):
* lisp/calendar/timeclock.el (timeclock-in, timeclock-when-to-leave)
(timeclock-last-period, timeclock-day-base):
* lisp/eshell/em-ls.el (eshell-ls-file):
* lisp/eshell/esh-util.el (eshell-parse-ange-ls):
* lisp/generic-x.el (named-database-print-serial):
* lisp/net/newst-backend.el (newsticker--get-news-by-url-callback)
(newsticker-get-news, newsticker--sentinel-work)
(newsticker--image-get, newsticker--image-sentinel):
* lisp/net/tramp-sh.el (tramp-get-remote-touch):
* lisp/progmodes/opascal.el (opascal-debug-log):
* lisp/textmodes/remember.el (remember-mail-date)
(remember-store-in-files):
* lisp/vc/vc-annotate.el (vc-annotate-display-autoscale)
(vc-default-annotate-current-time):
* lisp/vc/vc-bzr.el (vc-bzr-shelve-snapshot):
* lisp/vc/vc-cvs.el (vc-cvs-annotate-current-time):
* lisp/vc/vc-rcs.el (vc-rcs-annotate-current-time):
* lisp/url/url-util.el (url-get-normalized-date):
* lisp/erc/erc-backend.el (TOPIC):
* lisp/gnus/gnus-delay.el (gnus-delay-article):
* lisp/gnus/gnus-sum.el (gnus-summary-read-document):
* lisp/gnus/gnus-util.el (gnus-seconds-today, gnus-seconds-month):
* lisp/gnus/message.el (message-make-expires-date):
* lisp/org/org-archive.el (org-archive-subtree)
(org-archive-to-archive-sibling):
* lisp/org/org-clock.el (org-resolve-clocks, org-clock-get-sum-start)
(org-clock-special-range):
* lisp/org/org-timer.el (org-timer-seconds):
* lisp/org/org.el (org-read-date-analyze, org-get-cursor-date):
* lisp/org/ox-html.el (org-html-format-spec):
* lisp/org/ox-icalendar.el (org-icalendar--vtodo):
Omit unnecessary call to current-time.
* lisp/calendar/time-date.el (time-to-seconds) [!float-time]:
* lisp/calendar/timeclock.el (timeclock-time-to-date):
* lisp/vc/vc-annotate.el (vc-annotate-convert-time):
Use current time if arg is nil, to be compatible with float-time.
(time-date--day-in-year): New function, with most of the guts of
the old time-to-day-in-year.
(time-to-day-in-year): Use it.
(time-to-days): Use it, to avoid decoding the same time stamp twice.
* lisp/calendar/timeclock.el (timeclock-update-mode-line):
* lisp/cedet/srecode/args.el (srecode-semantic-handle-:time):
* lisp/gnus/gnus-util.el (gnus-seconds-year):
* lisp/org/org.el (org-get-cursor-date):
Don't call current-time twice to get the current time stamp,
as this can lead to inconsistent results.
* lisp/completion.el (cmpl-hours-since-origin):
* lisp/erc/erc.el (erc-emacs-time-to-erc-time):
* lisp/ido.el (ido-time-stamp):
* lisp/vc/vc-annotate.el (vc-annotate-convert-time):
Simplify by using float-time.
* lisp/completion.el (save-completions-to-file):
* lisp/url/url-cache.el (url-cache-prune-cache):
Rename local var to avoid confusion.
* lisp/gnus/gnus-util.el (gnus-float-time):
* lisp/net/rcirc.el (rcirc-float-time):
* lisp/org/org-compat.el (org-float-time):
Simplify to an alias because time-to-seconds now behaves like float-time
with respect to nil arg.
* lisp/subr.el (progress-reporter-do-update):
Don't call float-time unless needed.
* lisp/erc/erc.el (erc-current-time): Simplify by using erc-emacs-time-to-erc-time.
* lisp/org/org-clock.el (org-clock-get-table-data): Omit unnecessary, lossy
conversion from floating point to Emacs time and back.
(org-resolve-clocks): Prefer two-argument floor.
Leo Liu [Wed, 29 Oct 2014 01:37:16 +0000 (09:37 +0800)]
* net/rcirc.el (rcirc-fill-column): Use function.
(rcirc-markup-fill): Remove adjustment.
Christopher Schmidt [Wed, 29 Oct 2014 00:37:37 +0000 (19:37 -0500)]
doc/misc/calc.texi (Quick Calculator): Mention prefix argument of
`quick-calc'.
etc/NEWS: Mention prefix argument of `quick-calc'.
lisp/calc/calc.el (quick-calc):
lisp/calc/calc-aent.el (calc-do-quick-calc): New argument INSERT.
Sam Steingold [Tue, 28 Oct 2014 21:55:28 +0000 (17:55 -0400)]
Allow any symbolic value for `rcirc-fill-column'.
* lisp/net/rcirc.el (rcirc-fill-column): Allow any symbolic value for
the sake of `window-body-width' (in addition to `frame-width').
Ulf Jasper [Tue, 28 Oct 2014 20:33:12 +0000 (21:33 +0100)]
xml.c:parse_region: Do not forget the first document child.
* src/xml.c (parse_region): Do not forget the first document child.
* test/automated/libxml-tests.el: New file.
Eli Zaretskii [Tue, 28 Oct 2014 17:48:21 +0000 (19:48 +0200)]
Fix bug #18873 with non-ASCII characters in user's HOME directory.
src/fileio.c (Fexpand_file_name): Use make_unibyte_string, not
build_string, when importing a home directory.
Katsumi Yamaoka [Mon, 27 Oct 2014 22:51:18 +0000 (22:51 +0000)]
[Backport] gnus.el (gnus-mode-line-buffer-identification):
Don't add image data for a non-graphic display;
Don't shadow load-path, it blocks autoloading of find-image (bug#18813)
Katsumi Yamaoka [Mon, 27 Oct 2014 03:51:18 +0000 (12:51 +0900)]
lisp/gnus/gnus.el (gnus-mode-line-buffer-identification): Don't add image data for a non-graphic display (bug#18813)
enami tsugutomo [Mon, 27 Oct 2014 00:56:22 +0000 (00:56 +0000)]
[Backport] lisp/gnus/nnimap.el (nnimap-wait-for-response): Ignore NOOP response requested to keep connection open
Eric S. Raymond [Mon, 27 Oct 2014 00:50:32 +0000 (20:50 -0400)]
Guidance on commit-comment formats.
Eric S. Raymond [Mon, 27 Oct 2014 00:27:55 +0000 (20:27 -0400)]
More preparation for git tramsition. Reorganize to sparate our dependencies.
Dani Moncayo [Sun, 26 Oct 2014 18:37:16 +0000 (19:37 +0100)]
* README.W32 (Preliminaries): Don't assume that this file is at
the top level.
(Setting up Emacs): Minor rewording to be more accurate.
Backported from trunk.
Eric S. Raymond [Sun, 26 Oct 2014 17:57:10 +0000 (13:57 -0400)]
Fix some fallback values to conform to the actual release number.
Dani Moncayo [Sun, 26 Oct 2014 17:47:32 +0000 (18:47 +0100)]
* README.W32 (Preliminaries): Don't assume that this file is at
the top level.
(Setting up Emacs): Minor rewording to be more accurate.
Eric S. Raymond [Sun, 26 Oct 2014 15:54:03 +0000 (11:54 -0400)]
Neutralize language specific to a VCS type.
Eric S. Raymond [Sun, 26 Oct 2014 15:43:38 +0000 (11:43 -0400)]
Neutralize labguage specific to a VCS type.
Eli Zaretskii [Sun, 26 Oct 2014 15:42:08 +0000 (17:42 +0200)]
Fix bug #18839 with incorrect image size returned by posn-at-point.
src/dispnew.c (buffer_posn_from_coords): Use
WINDOW_WANTS_HEADER_LINE_P, not WINDOW_WANTS_MODELINE_P, to
account for the header-line height.
Eric S. Raymond [Sun, 26 Oct 2014 15:38:44 +0000 (11:38 -0400)]
Neutralized language specific to a repository type.
Eric S. Raymond [Sun, 26 Oct 2014 11:15:06 +0000 (07:15 -0400)]
Merge BRANCH into repo, because it belongs with the developer advice. Also...
...this helps prepare for the repository move.
Eric S. Raymond [Sun, 26 Oct 2014 11:01:58 +0000 (07:01 -0400)]
Neutralize some language specific to a repository type.
Eric S. Raymond [Sun, 26 Oct 2014 10:12:44 +0000 (06:12 -0400)]
Rename the 'bzr' notes file to 'repo'. For two reasons:
1. A significant portion of the advice is independent of any
specific version-control sytem.
2. Doing the rename now means it is easier to compose a multi-file
patch that can be applied to fix the tree on the day of the git move.
Eric S. Raymond [Sat, 25 Oct 2014 20:11:24 +0000 (16:11 -0400)]
Looking for .bzr as a check for top-level directory will soon be a bad idea.
Fortunately the other two checks should be quite sufficient.
Eric S. Raymond [Sat, 25 Oct 2014 19:53:26 +0000 (15:53 -0400)]
Neutralize some production names specific to a repository type.
Eric S. Raymond [Sat, 25 Oct 2014 19:36:23 +0000 (15:36 -0400)]
Preparing foe git transition.
Eric S. Raymond [Sat, 25 Oct 2014 19:24:12 +0000 (15:24 -0400)]
Next binary distribution will not contain .bzrignore files.
Removing this now to unclitter the grwp listings when I hunt for
obsolete references to bzr.
Eric S. Raymond [Sat, 25 Oct 2014 19:23:20 +0000 (15:23 -0400)]
Neutralize language specific to a repository type.
Eric S. Raymond [Sat, 25 Oct 2014 19:21:11 +0000 (15:21 -0400)]
Anticipatory removal of some test data that will be obsolete shortly.
Eric S. Raymond [Sat, 25 Oct 2014 19:01:09 +0000 (15:01 -0400)]
Neutralize language specific to a repository type.
Eric S. Raymond [Sat, 25 Oct 2014 18:55:59 +0000 (14:55 -0400)]
Neutralize names specific to a repository type.
Eric S. Raymond [Sat, 25 Oct 2014 18:53:20 +0000 (14:53 -0400)]
Neutralize language specific to a repository type.
Eric S. Raymond [Sat, 25 Oct 2014 18:48:49 +0000 (14:48 -0400)]
Preparing for git transition; replace bzr-specific language.
Jan DjƤrv [Sat, 25 Oct 2014 13:56:22 +0000 (15:56 +0200)]
* nsselect.m: pasteboard_changecount is new.
(ns_store_pb_change_count, ns_get_pb_change_count)
(ns_get_our_change_count_for): New functions.
(ns_string_to_pasteboard_internal): Correct comment.
type => gtype in eassert, Call ns_store_pb_change_count.
(Fns_own_selection_internal): Remove data, use value.
(Fns_disown_selection_internal, Fns_selection_owner_p): Replace
Vselection_alist check, with change count check.
(Fns_get_selection): Initialize val to Qnil. Only get local
selection if change counts match (Bug#18799).
(nxatoms_of_nsselect): Initialize pasteboard_changecount.
Michael Albinus [Sat, 25 Oct 2014 13:29:15 +0000 (15:29 +0200)]
* net/tramp-gvfs.el (tramp-gvfs-methods-mounttracker)
(tramp-gvfs-mountlocation-signature): Check `tramp-gvfs-enabled'
during initialization.
Fixes: debbugs:18774
Vincent BelaĆÆche [Sat, 25 Oct 2014 10:40:14 +0000 (12:40 +0200)]
* ses.el (macroexp): add require for this package, so that
function `ses--cell' gets macroexp-quote --- this change was
supposed to be in my previous commit, but left out by mistake.
(ses--cell): Do not make formula a macroexp-quote of value when
value, not formula, is *skip*.
Noam Postavsky [Sat, 25 Oct 2014 09:12:01 +0000 (12:12 +0300)]
Fix bug #18745 with invoking Windows batch files with embedded whitespace.
src/w32proc.c (create_child): If calling a quoted batch file,
pass NULL for exe.
nt/cmdproxy.c (batch_file_p): New function.
(spawn): If calling a quoted batch file pass NULL for progname.
test/automated/process-tests.el (process-test-quoted-batfile): New test.
Vincent BelaĆÆche [Fri, 24 Oct 2014 23:02:25 +0000 (01:02 +0200)]
* ses.el (macroexp): add require for this package, so that function
`ses--cell gets macroexp-quote.
(ses--cell): makes formula a macroexp-quote of value when formula
is nil. The rationale of this changr is to allow in the future
shorter SES files, e.g. we could have only `(ses-cell A1 1.0)'
instead of `(ses-cell A1 1.0 1.0 nil REFLIST)'. In such a case
reference list REFLIST would be re-computed after load --- thus
trading off load time against file size.
* emacs-lisp/package.el (package--alist-to-plist-args): use
macroexp-quote instead of a lambda expression which has the same
content as macroexp-quote.
(macroexp): add require for this package, so that function
`package--alist-to-plist-args' gets macroexp-quote.
* emacs-lisp/macroexp.el (macroexp-quote): new defun.
Stefan Monnier [Fri, 24 Oct 2014 22:23:43 +0000 (18:23 -0400)]
* lisp/term/ns-win.el (ns-store-cut-buffer-internal)
(ns-copy-including-secondary): Use gui-set-selection.
Fixes: debbugs:18816
Eli Zaretskii [Fri, 24 Oct 2014 13:19:21 +0000 (16:19 +0300)]
A possible fix for bug #18815 with assertion violations in bidi.c.
src/bidi.c (bidi_resolve_explicit, bidi_find_bracket_pairs)
(bidi_resolve_brackets): Use end of string position rather than ZV
when iterating over a string.
Martin Rudalics [Fri, 24 Oct 2014 09:58:43 +0000 (11:58 +0200)]
Improve mouse dragging of frame edges.
* keyboard.c (make_lispy_position): Return coordinates also when
on scroll bars, fringes, margins or not in a window.
* xdisp.c (show_mouse_face): Don't change cursor face during
mouse tracking.
* mouse.el (mouse-drag-line): Don't use mouse-pixel-position.
Calculate increment from last position instead of window edge.
Add right- and bottom-divider bindings to transient map.
Katsumi Yamaoka [Fri, 24 Oct 2014 09:29:09 +0000 (09:29 +0000)]
lisp/gnus/ChangeLog (2014-10-24): Add bug#
Eli Zaretskii [Fri, 24 Oct 2014 09:13:01 +0000 (12:13 +0300)]
Improve documentation of faces in the user manual.
doc/emacs/frames.texi (Scroll Bars): Improve indexing of faces.
doc/emacs/killing.texi (Secondary Selection): Improve indexing of faces.
doc/emacs/search.texi (Basic Isearch, Query Replace): Improve indexing of
faces.
doc/emacs/display.texi (Standard Faces, Text Display)
(Useless Whitespace): Improve indexing of faces.
Katsumi Yamaoka [Fri, 24 Oct 2014 08:34:32 +0000 (08:34 +0000)]
lisp/gnus/gnus.el (gnus-mode-line-buffer-identification): Don't shadow load-path, it blocks autoloading of find-image (bug#18813)
enami tsugutomo [Fri, 24 Oct 2014 06:05:57 +0000 (06:05 +0000)]
lisp/gnus/nnimap.el (nnimap-wait-for-response): Ignore NOOP response requested to keep connection open
Stefan Monnier [Fri, 24 Oct 2014 04:09:55 +0000 (00:09 -0400)]
* lisp/cedet/semantic/complete.el: Require semantic/db-find.
Stefan Monnier [Thu, 23 Oct 2014 21:44:36 +0000 (17:44 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Define an internal predicate
even if :predicate was nil, for the benefit of typep.
Record the name of the predicate for typep's use.
(cl--make-type-test): Use pcase. Obey new cl-deftype-satisfies property.
Stefan Monnier [Thu, 23 Oct 2014 21:38:56 +0000 (17:38 -0400)]
* lisp/epg.el: Use cl-defstruct.
(epg-make-data-from-file, epg-make-data-from-string, epg-data-file)
(epg-data-string): Define via cl-defstruct.
(epg--gv-nreverse): New macro.
(epg-context--make): New constructor (provided vi cl-defstruct).
(epg-make-context): Rewrite using it.
(epg-context-protocol, epg-context-program)
(epg-context-home-directory, epg-context-armor, epg-context-textmode)
(epg-context-include-certs, epg-context-cipher-algorithm)
(epg-context-digest-algorithm, epg-context-compress-algorithm)
(epg-context-passphrase-callback, epg-context-progress-callback)
(epg-context-signers, epg-context-sig-notations, epg-context-process)
(epg-context-output-file, epg-context-result, epg-context-operation)
(epg-context-pinentry-mode): Define using cl-defstruct.
(epg-context-set-protocol, epg-context-set-program)
(epg-context-set-include-certs, epg-context-set-cipher-algorithm)
(epg-context-set-digest-algorithm)
(epg-context-set-sig-notations, epg-context-set-process)
(epg-context-set-output-file, epg-context-set-result)
(epg-context-set-operation, epg-context-set-pinentry-mode)
(epg-context-set-compress-algorithm): Remove. Use setf instead.
(epg-context-set-armor, epg-context-set-textmode)
(epg-context-set-signers): Redefine using setf
and declare as obsolete.
(epg-context-set-passphrase-callback)
(epg-context-set-progress-callback): Use setf.
(epg-signature-notations): Rename from epg-sig-notations.
(epg-make-signature, epg-signature-status, epg-signature-key-id)
(epg-signature-validity, epg-signature-fingerprint)
(epg-signature-creation-time, epg-signature-expiration-time)
(epg-signature-pubkey-algorithm, epg-signature-digest-algorithm)
(epg-signature-class, epg-signature-version): Define vi cl-defstruct.
(epg-signature-set-status, epg-signature-set-key-id)
(epg-signature-set-validity, epg-signature-set-fingerprint)
(epg-signature-set-creation-time, epg-signature-set-expiration-time)
(epg-signature-set-pubkey-algorithm)
(epg-signature-set-digest-algorithm, epg-signature-set-class)
(epg-signature-set-version, epg-signature-set-notations): Remove.
Use setf instead.
(epg-make-new-signature, epg-new-signature-type)
(epg-new-signature-pubkey-algorithm)
(epg-new-signature-digest-algorithm, epg-new-signature-class)
(epg-new-signature-creation-time, epg-new-signature-fingerprint):
Define using cl-defstruct.
(epg-make-key, epg-key-owner-trust, epg-key-sub-key-list)
(epg-key-user-id-list): Define using cl-defstruct.
(epg-key-set-sub-key-list, epg-key-set-user-id-list): Remove.
Use setf instead.
(epg-make-sub-key, epg-sub-key-validity, epg-sub-key-capability)
(epg-sub-key-secret-p, epg-sub-key-algorithm, epg-sub-key-length)
(epg-sub-key-id, epg-sub-key-creation-time)
(epg-sub-key-expiration-time, epg-sub-key-fingerprint): Define using
cl-defstruct.
(epg-sub-key-set-fingerprint): Remove. Use setf instead.
(epg-make-user-id, epg-user-id-validity, epg-user-id-string)
(epg-user-id-signature-list): Define using cl-defstruct.
(epg-user-id-set-signature-list): Remove. Use setf instead.
(epg-make-key-signature, epg-key-signature-validity)
(epg-key-signature-pubkey-algorithm, epg-key-signature-key-id)
(epg-key-signature-creation-time, epg-key-signature-expiration-time)
(epg-key-signature-user-id, epg-key-signature-class)
(epg-key-signature-exportable-p): Define using cl-defstruct.
(epg-make-sig-notation, epg-sig-notation-name)
(epg-sig-notation-value, epg-sig-notation-human-readable)
(epg-sig-notation-critical): Define using cl-defstruct.
(epg-sig-notation-set-value): Remove. Use setf instead.
(epg-make-import-status, epg-import-status-fingerprint)
(epg-import-status-reason, epg-import-status-new)
(epg-import-status-user-id, epg-import-status-signature)
(epg-import-status-sub-key, epg-import-status-secret): Define using
cl-defstruct.
(epg-make-import-result, epg-import-result-considered)
(epg-import-result-no-user-id, epg-import-result-imported)
(epg-import-result-imported-rsa, epg-import-result-unchanged)
(epg-import-result-new-user-ids, epg-import-result-new-sub-keys)
(epg-import-result-new-signatures, epg-import-result-new-revocations)
(epg-import-result-secret-read, epg-import-result-secret-imported)
(epg-import-result-secret-unchanged, epg-import-result-not-imported)
(epg-import-result-imports): Define using cl-defstruct.
* lisp/emacs-lisp/package.el: Require EPG during macroexpansion.
(package--check-signature, package-import-keyring): Use setf instead of
epg-context-set-home-directory.
Tassilo Horn [Thu, 23 Oct 2014 19:17:00 +0000 (21:17 +0200)]
Backport latest doc-view fix
* doc/emacs/misc.texi (Document View): Adapt to latest doc-view changes wrt
viewing the document's plain text contents. [Backport]
* lisp/doc-view.el (doc-view-open-text): View the document's plain text
in the current buffer instead of a new one.
(doc-view-toggle-display): Handle the case where the current
buffer contains the plain text contents of the document.
(doc-view-initiate-display): Don't switch to fallback mode if the
user wants to view the doc's plain text. [Backport]
Eli Zaretskii [Thu, 23 Oct 2014 16:54:25 +0000 (19:54 +0300)]
Document in the user manual variables that allow pixelwise resizing.
doc/emacs/frames.texi (Frame Commands): Document and index
'frame-resize-pixelwise'.
doc/emacs/windows.texi (Split Window): Document and index
'window-resize-pixelwise'.
Eli Zaretskii [Thu, 23 Oct 2014 16:32:51 +0000 (19:32 +0300)]
Fix bug #18760 with incorrect decoding of tutorial for "About Emacs" screen.
lisp/startup.el (fancy-about-text): Read the entire tutorial, not
just its first 256 bytes.
Stefan Monnier [Thu, 23 Oct 2014 13:33:25 +0000 (09:33 -0400)]
* lisp/emacs-lisp/bytecomp.el (byte-compile--use-old-handlers): Change default.
Stefan Monnier [Thu, 23 Oct 2014 13:31:20 +0000 (09:31 -0400)]
* lisp/emacs-lisp/bytecomp.el: Require cl-extra.
* lisp/emacs-lisp/cl-extra.el: Add missing provide.
Fixes: debbugs:18804
Martin Rudalics [Thu, 23 Oct 2014 13:21:07 +0000 (15:21 +0200)]
Fix some doc-strings in frame.c (Bug#18789).
* frame.c (Fset_frame_height, Fset_frame_width, Fset_frame_size)
(frame_resize_pixelwise, frame_inhibit_implied_resize): Fix
doc-strings (Bug#18789).
Leo Liu [Thu, 23 Oct 2014 08:07:40 +0000 (16:07 +0800)]
* lisp/progmodes/cfengine.el (cfengine3-defun-full-re): New var.
(cfengine3-create-imenu-index): Use it and use ` ' for separation.
(cfengine3-current-defun): New function.
(cfengine3-mode): Set add-log-current-defun-function.
Paul Eggert [Thu, 23 Oct 2014 06:31:48 +0000 (23:31 -0700)]
* Makefile.in (ACLOCAL_INPUTS): Omit unnecessary use of 'wildcard'.
Paul Eggert [Thu, 23 Oct 2014 05:52:47 +0000 (06:52 +0100)]
* Makefile.in (${srcdir}/info/dir): Make sure info directory exists (backport)
Paul Eggert [Thu, 23 Oct 2014 03:32:21 +0000 (20:32 -0700)]
Fix race in 'make info/dir', and speed it up.
* Makefile.in (AWK, srcdir_doc_info_dir_inputs, info_dir_inputs):
New macros.
(clean): Remove info-dir.*.
(info_dir_deps): Depend on make-info-dir too.
Fix bug with wildcards that weren't expanded.
(${srcdir}/info/dir): Make sure info directory exists.
Don't call pwd; just redirect make-info-dir's stdout to temp file.
* build-aux/make-info-dir: Send output to stdout.
Take input file names from args.
Fix a "FIXME inefficient looping" by using awk's associative arrays.
Basically, this rewrites the script from scratch, and speeds up
'make info/dir' from 2.6s to 0.07s on my platform.
Stefan Monnier [Thu, 23 Oct 2014 01:38:59 +0000 (21:38 -0400)]
* lisp/select.el: Use lexical-binding.
(gui-set-selection): Provide an implementation for non-GUI frames.
* lisp/term/x-win.el: Use lexical-binding.
(x-clipboard-yank): Fix up missed renamings.
* lisp/term/w32-win.el (libgif-version, libjpeg-version): Silence compiler.
(w32--set-selection): Fix up var names.
* lisp/term/pc-win.el: Use lexical-binding.
(w16-selection-exists-p): Silence compiler warning.
(w16-selection-owner-p): Fix up missed renamings.
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Remove left-over debug.
* lisp/frame.el (frame-notice-user-settings): Fix excessive quoting.
Fixes: debbugs:18791
Eli Zaretskii [Wed, 22 Oct 2014 16:09:57 +0000 (19:09 +0300)]
Fix bug #18778 with slow redisplay of bracketed L2R text with long lines.
src/bidi.c (bidi_cache_reset_to): New function.
(bidi_cache_reset): Call it.
(bidi_init_it, bidi_line_init): Initialize the bracket_pairing_pos
member to -1.
(bidi_resolve_explicit): Reset bracket_pairing_pos and
bracket_enclosed_type only if bracket_pairing_pos's value is not
ZV.
(MAX_BPA_STACK): Make sure the value is signed.
(PUSH_BPA_STACK): If the BPA stack overflows, don't bail out, but
stop pushing values onto the stack.
(bidi_find_bracket_pairs): If the bracketed text is only on the
base embedding level, remove all the states cached by this
function from the cache, and return zero, so that the brackets in
this segment of text are processed as normal neutrals.
(bidi_resolve_brackets): Detect the brackets that are to be
processed as neutrals, and don't call bidi_find_bracket_pairs on
them.
Eli Zaretskii [Wed, 22 Oct 2014 15:19:44 +0000 (18:19 +0300)]
etc/DEBUG: Improve instructions for debugging infinite loops.
Stefan Monnier [Wed, 22 Oct 2014 13:38:47 +0000 (09:38 -0400)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-and-folded): Optimize case where
all args are copyable.
(=, <, >, <=, >=): Re-enable the optimization.
Fixes: debbugs:18767
Tassilo Horn [Wed, 22 Oct 2014 13:30:16 +0000 (15:30 +0200)]
Improve viewing plain text contents of document
* doc/emacs/misc.texi (Document View): Adapt to latest doc-view changes wrt
viewing the document's plain text contents.
* lisp/doc-view.el (doc-view-open-text): View the document's plain text
in the current buffer instead of a new one.
(doc-view-toggle-display): Handle the case where the current
buffer contains the plain text contents of the document.
(doc-view-initiate-display): Don't switch to fallback mode if the
user wants to view the doc's plain text.
(doc-view-set-doc-type): Use assoc-string instead of
assoc-ignore-case.
Stefan Monnier [Wed, 22 Oct 2014 13:10:41 +0000 (09:10 -0400)]
* configure.ac: Bump version to 24.4.51 to avoid ambiguity with the old
trunk's 24.4.50.
Martin Rudalics [Wed, 22 Oct 2014 10:01:17 +0000 (12:01 +0200)]
Add two "+++"s to frame section of NEWS.
Martin Rudalics [Wed, 22 Oct 2014 09:57:17 +0000 (11:57 +0200)]
Rewrite "Size and Position" section in frames.texi.
* frames.texi (Size Parameters): Replace "frame contents" by
"frame's text area". Add reference to Size and Position
section.
(Size and Position): Major rewrite. Add explanations for
frame's default font, text and display areas. Add descriptions
for `set-frame-font', `frame-text-height', `frame-text-width'
and `frame-inhibit-implied-resize'.
YAMAMOTO Mitsuharu [Wed, 22 Oct 2014 01:39:48 +0000 (10:39 +0900)]
* xdisp.c (erase_phys_cursor): Fix confusion between window-relative and text area-relative x-coordinates. [Backport]
YAMAMOTO Mitsuharu [Wed, 22 Oct 2014 01:31:37 +0000 (10:31 +0900)]
* xdisp.c (draw_glyphs): Set clipping to highlight boundaries. [Backport]
Stefan Monnier [Tue, 21 Oct 2014 20:11:22 +0000 (16:11 -0400)]
* lisp/mouse.el (mouse-drag-line): Use set-transient-map.
(mouse--down-1-maybe-follows-link): Remove unused var `this-event'.
(mouse-yank-secondary): Use gui-get-selection.
(mouse--down-1-maybe-follows-link): Use read-key.
* lisp/subr.el (read-key): Fix clicks on the mode-line.
(set-transient-map): Return exit function.
* lisp/xt-mouse.el: Add `event-kind' property on the fly from
xterm-mouse-translate-1 rather than statically at the outset.
Fixes: debbugs:18015
Daniel Colascione [Tue, 21 Oct 2014 16:05:13 +0000 (17:05 +0100)]
Stop vc from burying buffers sometimes
* vc/vc-dispatcher.el (vc-resynch-window): Tell view-mode not to
change window configuration when we turn it off.
Eli Zaretskii [Tue, 21 Oct 2014 15:36:23 +0000 (18:36 +0300)]
Bump Emacs version to 24.4.50.
Stefan Monnier [Tue, 21 Oct 2014 15:27:18 +0000 (11:27 -0400)]
Get rid of backend-dependent selection-handling functions for kill/yank
and make it generic instead by relying on the lower-level selection
management functions.
* select.el (select-enable-clipboard): Rename from
gui-select-enable-clipboard.
(select-enable-primary): Move from x-win.el and rename from
x-select-enable-primary.
(gui-last-selected-text): Remove.
(gui--last-selected-text-clipboard, gui--last-selected-text-primary):
New vars.
(gui-select-text): Rewrite, based on x-win.el's old x-select-text.
(gui-select-text-alist, gui-selection-value-alist): Remove.
(x-select-request-type): Move from x-win.el.
(gui--selection-value-internal): New function, taken from x-win's
x-selection-value-internal.
(gui-selection-value): Rewrite, based on x-win.el's old x-selection-value.
(gui-set-selection-alist): Rename from gui-own-selection-alist and
extend it to handle a nil value as a "disown" request.
(gui-disown-selection-alist): Remove.
(xselect-convert-to-delete): Adjust accordingly.
(gui-set-selection): Simplify accordingly as well. Use dotimes.
* lisp/frame.el (gui-method): Use window-system rather than framep.
(gui-method-declare): The tty case is now nil rather than t.
(make-frame): Adjust accordingly.
* lisp/term/x-win.el (x-last-selected-text-primary)
(x-select-enable-primary): Remove (moved to select.el).
(x-select-request-type): Move to select.el.
(x-selection-value-internal, x--selection-value): Remove functions.
(gui-selection-value, gui-select-text): Remove moethods.
(gui-set-selection): Merge own and disown methods.
* lisp/startup.el (command-line): Adjust now that `gui-method' expects nil
for ttys.
* lisp/term/ns-win.el (ns-get-pasteboard, ns-set-pasteboard)
(ns-selection-value): Remove functions.
(gui-select-text, gui-selection-value): Don't define method any more.
(gui-set-selection): Merge the old own and disown methods.
(gui-selection-exists-p, gui-get-selection): Adjust to new name of
underlying C primitive.
* lisp/term/pc-win.el (w16-get-selection-value): Add dummy argument and drop
test of gui-select-enable-clipboard, to make it usable as
a gui-get-selection method.
(gui-selection-exists-p): Adjust to new name of C primitive.
(gui-set-selection): Merge own and disown methods.
(gui-select-text, gui-selection-value): Delete methods.
(w16--select-text): Delete function.
* lisp/term/w32-win.el (w32--select-text, w32--get-selection-value):
Delete function (move functionality into w32--set-selection and
w32--get-selection).
(gui-select-text, gui-selection-value): Don't define methods.
(w32--set-selection, w32--get-selection, w32--selection-owner-p):
New functions.
(gui-get-selection, gui-selection-owner-p, gui-selection-exists-p):
Use them.
(gui-selection-exists-p): Adjust to new name of C primitive.
* src/nsselect.m (ns_get_local_selection): Signal error rather than `quit'.
(Fns_own_selection_internal): Tighten scoping.
(Fns_selection_exists_p): Rename from Fx_selection_exists_p.
(Fns_get_selection): Rename from Fx_get_selection_internal.
(Fns_get_selection_internal, Fns_store_selection_internal):
Remove functions.
(syms_of_nsselect): Adjust accordingly.
* src/w16select.c (Fw16_selection_exists_p): Rename from
Fx_selection_exists_p.
(syms_of_win16select): Adjust accordingly.
* src/w32select.c (Fw32_selection_exists_p): Rename from
Fx_selection_exists_p.
(syms_of_w32select): Adjust accordingly.
Martin Rudalics [Tue, 21 Oct 2014 06:57:28 +0000 (08:57 +0200)]
Handle wrapped menu bar lines when resizing frames with Windows API.
* w32fns.c (Fw32_frame_menu_bar_size): New function.
* w32term.c (x_set_window_size): Account for wrapped menu bar
lines when setting up frame height (Bug#15174 and Bug#18720).
(w32_add_wrapped_menu_bar_lines): New variable.
Stefan Monnier [Tue, 21 Oct 2014 01:35:30 +0000 (21:35 -0400)]
* lisp/net/newst-reader.el (newsticker--image-read): Simplify.
(newsticker--icon-read): Use dolist and fix free var error.
Stefan Monnier [Tue, 21 Oct 2014 01:33:44 +0000 (21:33 -0400)]
* lisp/imenu.el (imenu--menubar-keymap): New var.
(imenu-add-to-menubar): Set it to remember the keymap we used.
(imenu-update-menubar): Use it instead of asking lookup-key.
Stefan Monnier [Tue, 21 Oct 2014 01:17:06 +0000 (21:17 -0400)]
Merge from emacs-24
Santiago PayĆ i Miralta [Tue, 21 Oct 2014 00:14:07 +0000 (20:14 -0400)]
* lisp/vc/vc-hg.el (vc-hg-log-graph): New var.
(vc-hg-print-log): Use it.
(vc-hg-root-log-format): Include branch name and bookmarks; ignore
graph output.
Fixes: debbugs:17515
Juri Linkov [Tue, 21 Oct 2014 00:11:58 +0000 (20:11 -0400)]
* lisp/vc/diff-mode.el (diff-refine-changed): Rename from
`diff-refine-change' for consistency with `diff-changed'.
(diff-refine-change): Add obsolete face alias.
* lisp/vc/smerge-mode.el (smerge-refined-changed): Rename from
`smerge-refined-change'.
(smerge-refined-change): Add obsolete face alias.
[Backport]
Fixes: debbugs:10181
Glenn Morris [Mon, 20 Oct 2014 22:45:35 +0000 (18:45 -0400)]
* lisp/url/url-vars.el (url-bug-address): Make into an obsolete alias.
* lisp/url/url-http.el (url-http-handle-authentication):
* lisp/url/url-news.el (url-news-fetch-message-id):
Use M-x report-emacs-bug in help messages. [Backport]
Stefan Monnier [Mon, 20 Oct 2014 22:44:11 +0000 (18:44 -0400)]
* lisp/subr.el (call-process-shell-command, process-file-shell-command):
Make the `args' obsolete.
(start-process-shell-command, start-file-process-shell-command):
Use `declare'.
Fixes: debbugs:18409
Juanma Barranquero [Mon, 20 Oct 2014 22:41:19 +0000 (18:41 -0400)]
* lisp/skeleton.el (skeleton-autowrap): Mark as obsolete. [Backport]
Glenn Morris [Mon, 20 Oct 2014 22:39:30 +0000 (18:39 -0400)]
* lisp/dired.el (dired-read-regexp): Make obsolete. [Backport]
(dired-mark-files-regexp, dired-mark-files-containing-regexp)
(dired-flag-files-regexp):
* lisp/dired-aux.el (dired-mark-read-regexp):
* lisp/dired-x.el (dired-mark-unmarked-files): Use read-regexp directly.
Stefan Monnier [Mon, 20 Oct 2014 22:37:04 +0000 (18:37 -0400)]
* lisp/progmodes/python.el (inferior-python-mode): Use add-hook.
Stefan Monnier [Mon, 20 Oct 2014 22:35:43 +0000 (18:35 -0400)]
* list/emulation/viper: Add some FIXME comments.
Stefan Monnier [Mon, 20 Oct 2014 22:23:28 +0000 (18:23 -0400)]
* doc/misc/eieio.texi (Accessing Slots, CLOS compatibility): Adjust wording
since `setf' is in core rather than in CL nowadays.